@table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
@table-padding-horizontal-md: (@table-padding-horizontal / 2);
@table-padding-vertical-sm: (@table-padding-vertical / 2);
@table-padding-horizontal-sm: (@table-padding-horizontal / 2);

.table-size(@size, @padding-vertical, @padding-horizontal) {
  .@{surely-table-prefix-cls}.@{surely-table-prefix-cls}-@{size} {
    .@{surely-table-prefix-cls}-cell-content {
      padding: @padding-vertical @padding-horizontal;
    }
    .@{surely-table-prefix-cls}-cell-box {
      padding: 0 @table-padding-horizontal-sm;
    }
    .@{surely-table-prefix-cls}-auto-header-height {
      .@{surely-table-prefix-cls}-header-cell {
        padding: @padding-vertical 0 !important;
      }
    }
  }
}

// ================================================================
// =                            Middle                            =
// ================================================================
.table-size(~'middle', @table-padding-vertical-md, @table-padding-horizontal-md);

// ================================================================
// =                            Small                             =
// ================================================================
.table-size(~'small', @table-padding-vertical-sm, @table-padding-horizontal-sm);

.@{surely-table-prefix-cls}-small {
  .@{surely-table-prefix-cls}-selection-column {
    width: 46px;
    min-width: 46px;
  }
}
